package Service.impl;

import Dao.RoleDao;
import Dao.impl.RoleDaoImpl;
import Domin.Role;
import Service.RoleService;

import java.util.Optional;

public class RoleServiceImpl implements RoleService {
    private final RoleDao roleDao = new RoleDaoImpl();

    @Override
    public Optional<Role> getPermissions(String roleName) {
        return roleDao.getRolePermissions(roleName);
    }
}